{% load static %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎登录 | 云招聘</title>
</head>
<style type="text/css">
.div0Sear {
    background-image: url({% static '/images/menu-bg1.gif' %});
    background-repeat: repeat-x;
    width: 1000px;
    height: 33px;
    margin: auto;
    color: #FFF;
    font-size: 12px;
    line-height: 28px;
}

.span0Sear {
    margin-left: 5px;
    margin-right: 5px;
}

select {
    width: 100px;
}

.spandwt {
    display: block;
    text-align: center;
    line-height: 25px;
    font-size: 12px;
    color: #414141;
    font-family: "宋体";
}

.divdwt {
    display: block;
    background-image: url({% static '/images/bottom-bg.gif' %});
    text-align: center;
    height: 35px;
    width: 1000px;
    color: #FFF;
    line-height: 30px;
    font-size: 12px;
    font-family: "宋体";
    margin: auto;
}

.adwt {
    color: #FFF;
    font-size: 12px;
    text-decoration: none;
    font-family: "宋体";
}

.adwt:hover {
    color: #FFF;
    font-size: 12px;
    text-decoration: none;
    font-family: "宋体";
}

.bodydwt {
    text-align: center;
}

.imgdwt {
    border: 0px;
}

.headdwt {
    width: 960px;
    height: 65px;
    margin: auto; /*居中*/
    position: relative;
    vertical-align: bottom;
    /*border:1px solid #000;*/
}

.headerleftdwt {
    /*border:1px solid #000;*/
    float: left;
    margin-bottom: 0px;
    height: 65px;
}

.headerrightdwt {
    /*border:1px solid #000;*/
    float: right;
    height: 31px;
    vertical-align: bottom;
    margin-top: 34px;
}

.imgheaderdwt {
    border: 0px;
}
</style>
<link href="{% static '/login/common.2b11f70f.css' %}" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/3.0.0/jquery.min.js"></script>
<body>

<div class="bodydwt">
<div class="headdwt">
	<div class="headerleftdwt"><img src="{% static '/images/logo.gif' %}" /></div>
    <div class="headerrightdwt">
        <a href="/" name="pic"><img src="{% static '/images/menu1-2.gif' %}" class="imgheaderdwt" /></a>
        <a href="/search" name="pic"><img src="{% static '/images/menu2-2.gif' %}" class="imgheaderdwt" /></a>
        <a href="/resume" name="pic"><img src="{% static '/images/menu3-2.gif' %}" class="imgheaderdwt" /></a>
    </div>
</div>
<!-- InstanceBeginEditable name="EditRegion3" -->
<!--菜单栏开始-->
<div class="div0Sear">
	高级搜索<span class="span0Sear">|</span>关键字搜索
</div>
<!--菜单栏结束-->

<!--搜索栏开始-->
<!--搜索栏结束-->
<!-- InstanceEndEditable -->
</div>

<div style="width: 1000px; margin: 0 auto;">
    <div class="lrcon Fm lr_v50">
    <div class="lrbox clearfix">
        <div class="lr_lf">
            <div class="lr_c">
                <label class="l6"></label>
                <div class="lr_cn">
                    <p>职位优选</p>
                    <div class="c_999 f12">360行任你挑选</div>
                </div>
            </div>
            <div class="lr_c">
                <label class="l7"></label>
                <div class="lr_cn">
                    <p>快速投递</p>
                    <div class="c_999 f12">分秒必争直达HR</div>
                </div>
            </div>
            <div class="lr_c">
                <label class="l8"></label>
                <div class="lr_cn">
                    <p>高效反馈</p>
                    <div class="c_999 f12">谁看我简历早知道</div>
                </div>
            </div>
        </div>

        <!-- 验证码登录 -->
        <div class="lr_rt">
            <input type="hidden" id="label_loginway" name="lang" value="1">
            <input type="hidden" id="lang" name="lang" value="c">
            <input type="hidden" id="error_code" name="error_code" value="">

            {{ error }}
            <div class="lr_h1 clearbox" id="NormalLoginBtn">
                <span class="loginway on">登录</span>
            </div>

            <form action="/login" method="post" name="signup" id="signup">

                <div class="lr_e coun">
                    <div class="txt" style="z-index:9999;position:relative;">
                        <div class="country-list">
                            <div class="in" id="nationbtn">
                                <input class="nu" id="selectednationcode" value="+86" placeholder="+86"
                                       readonly="readonly" disabled="disabled" type="text">
                                <input type="hidden" id="selectednatonid" name="selectednatonid" value="CN">
                            </div>
                        </div>

                        <input class="ef" id="phone" name="phone" type="text" autocomplete="off" placeholder="手机号码" value=""
                               onkeydown="enterClickGetValue(event);"
                               onblur="checkPhone(&#39;loginname&#39;, &#39;username_err&#39;, &#39;1&#39;, &#39;0&#39;)"
                               maxlength="11"><input type="hidden" id="loginname_encrypt" name="loginname_encrypt"
                                                     value="">
                        <span class="icon_ok" style="display:none" id="loginname_ok"></span>
                    </div>
                    <label>
                        <span class="err" id="username_err" style="display:"></span>
                    </label>

                </div>


                <div class="lr_e e2">
                    <div class="txt pointer2">
                        <input class="ef" autocomplete="off" maxlength="6" type="text" id="phone_code" name="phone_code"
                               placeholder="短信验证码" value="">
                    </div>
                    <span class="p_but geige" id="btn7" onclick="send_sms_code()">发送验证码</span>
                    <label>
                        <span class="err" style="display:none"
                              id="phonecode_err">短信验证码错误或已过期                                </span>
                    </label>
                </div>
                {% csrf_token %}
                <div class="btnbox">
                    <button type="submit" class="p_but" id="login_btn" onclick="submitByType(&#39;smslogin&#39;)">登录
                    </button>
                </div>
            </form>
        </div>

    </div>
    <div class="lr_bm"></div>
</div>
</div>


<div class="divdwt">
	网站导航&nbsp;&nbsp;|&nbsp;&nbsp;<a href="index.html" class="adwt">网站首页</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="search.html" class="adwt">职位搜索</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="login.2html" class="adwt">Myjob</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="register.html" class="adwt">用户注册</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="login.2html" class="adwt">用户登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="intro.html" class="adwt">简历管理</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="delivery/1">投递历史</a>
</div>
<div>
  <span class="spandwt">人才招聘&nbsp;Email:hr@51job.com</span>
  <span class="spandwt">个人求职&nbsp;Email:club@51job.com&nbsp;&nbsp;或垂询:800-820-5100</span>
  <span class="spandwt">未经本招聘网站同意，不得转载本网站之所有招聘信息及作品</span>
  <span class="spandwt">无忧工作网版权所有&copy;1999-2007</span>
  <span class="spandwt"><a href="index.html"><img src="{% static '/images/bottom1.gif' %}" class="imgdwt" /></a></span>
</div>

<script type="text/javascript">

function send_sms_code() {
    var phone = $('#phone').val();
    e = /^1[34578]\d{9}$/;
    if(!e.test(phone)){
        check = false
    }else{
        check = true;
    }
    if(check){
        $.ajax({
            type: 'get',
            url: '/send_sms',
            data:{
                'phone': phone,
            },
            success: function (result) {
                {#alert('验证码'+ result.code +'发送成功');#}
                alert('验证码"'+ result.code +'"发送成功');
            },
        })
    }else {
        alert('手机号不合法,请重新输入！！！');
    }
}
</script>
</body>
</html>

